AC_INIT([intone],[0.70])
AM_INIT_AUTOMAKE

AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])

AC_PROG_CC

AC_HEADER_STDC

AC_CHECK_HEADERS(id3.h, [have_id3_h=yes], [have_id3_h=no])
AC_CHECK_LIB(id3, ID3Tag_New, [have_id3lib=yes], [have_id3lib=no])
if test $have_id3lib = no -o $have_id3_h = no ; then
	AC_MSG_ERROR([Cannot find ID3 tag reading library])
fi

PKG_CHECK_MODULES(INTONE, [elementary edbus dbus-1 evas ecore sqlite3 vorbisfile])

AC_CONFIG_FILES([
	Makefile
	src/Makefile
	resources/Makefile
])

AC_OUTPUT
